package com.swiftride.feign;

import com.swiftride.constants.Constants;
import com.swiftride.param.PointParam;
import com.swiftride.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(value = Constants.Remote.SERVICE_BIGDATA, path = "/app/point", contextId = "DriverPointFeign")
public interface DriverPointFeign {

    @PostMapping("/{orderNo}")
    R<List<PointParam>> selectByOrderNo(@PathVariable(value = "orderNo") String orderNo);
}